<?php
/**
 * Created by yuxianjun001@icloud.com.
 * User: wuchen
 * Date: 2019/4/1
 * Time: 10:57
 */

namespace App\model\GoodsModel;


use App\model\BaseModel;

/**
 * 商家后端 商品model
 * Class BusinessGoodsModel
 * @package App\model\GoodsModel
 */
class BusinessGoodsModel  extends BaseModel
{
    protected $table = 'business_goods';

    public function business_plat_form_goods_info()
    {
        return $this->hasOne('App\Model\GoodsModel\PlatFormGoodsModel', 'id', 'goods_id')->select('id', 'name');
    }

}